toValidatedNel

inline fun <T, E> Option<T>.toValidatedNel(error: () -> E): ValidatedNel<E, T>(source)

Turns your Option into a Validated list of T if it's a Some. If it's a None, will return a Nel of the error function passed in